package top.lishuoboy.hibernate.validator.a3_1_2;

import cn.hutool.core.collection.ListUtil;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@NoArgsConstructor
public class Car {

    /** 不支持 static 方法 校验 */
    @NotNull
    @Size(min = 5)
    public List<@NotNull String> rentCar() {
        return ListUtil.<String>list(false);
    }
}